import java.util.Date;


public class Consumer implements Runnable {
	Buffer mBuffer;

	public Consumer(Buffer mBuffer) {
		super();
		this.mBuffer = mBuffer;
	}

	@Override
	public void run() {
		
		if (mBuffer!=null) {
			for (int i = 0; i < 100; i++) {
				Date date = mBuffer.get();
				System.out.println(date.getTime());
				try {
<<<<<<< HEAD
					Thread.sleep(1000);
=======
					Thread.sleep(50);
>>>>>>> 362310922453fc947495c87005d6dbc5f6b1fce3
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

			}
		}
		
	}

}
